package com.aoip.telemetry.telemetry.entity.enums;

/**
 * @author chenbai
 * @version 1.0
 * @date 2021/12/1 16:29
 */
public enum LogLevelEnum {
    /**
     * 日志类型
     *
     * @date 2021/12/1
     **/
    TRACE(
            0, "TRACE"
    ), DEBUG(
            1, "DEBUG"
    ), INFO(
            2, "INFO"
    ), WARN(
            3, "WARN"
    ), ERROR(
            4, "ERROR"
    );

    /**
     * @category 编码
     */
    private Integer code;
    /**
     * @category 说明
     */
    private String msg;

    LogLevelEnum(Integer code, String msg) {
        setCode(code);
        setMsg(msg);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
